<template>
	<view class="content">
		<view class="title mt20">
			{{info.title}}
		</view>
		<view class="mt10 mb20 createtime">
			{{$u.timeFrom(info.createtime, 'yyyy/mm/dd hh:MM')}}
		</view>
		<u-parse :html="info.cont"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{
					title:'',
					createtime:'',
					cont:''
				}
			}
		},
		onLoad(opt) {
			this.info = JSON.parse(uni.getStorageSync("info"))
			console.log(this.info);
		},
		methods: {
			getDetail(){
				let opts = {
					url: '/information/pagelist',
					method: 'post'
				};
				let params = {
					userid:this.user.id,
					type:1
				};
				this.$api.post(opts, params).then(res => {
					console.log(res);
					if(res.code == 0){
						this.ryData = res.list
					}
					
				})
			}
		}
	}
</script>

<style scoped>
	.content{
		box-sizing: border-box;
		padding: 40rpx;
		width: 100%;
		height: 100%;
		background-color: #fff;
	}
	
	.title{
		font-size: 36rpx;
		font-weight: bold;
	}
	
	.createtime{
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #ABB0C4;
	}

</style>
